package com.daka.enumerate;

/**
 * Created by yangx
 * Date: 2016/8/9 0009
 * Time: 11:05
 */
public enum StatusCode {

    SUCCESS(0, "执行成功!"),
    ERROR(-1, "网络繁忙"),
    SYS_ERROR(-1, "糟了系统出错了！"),
    USER_NOT_EXITS(-2, "用户不存在!"),
    USER_EXITS(-3, "用户已存在!"),
    NOT_LOGIN(-4, "用户未登录"),
    PASSWORD_ERROR(-5,"账号密码不匹配！"),
    PARAMETER_INVALID(-6, "参数错误!"),
    FILE_NOT_FOUNT(-7, ""),
    FILE_EXIT(-8,"资源已经存在！"),
    CODE_ERROR(-9,"验证码错误！"),
    ERROR_STATUS(-10, "糟了系统出错了！"),
    NO_ACCESS(-10, "没有访问权限！"),

//    ADD_ERROR(-3, "新增异常"),
//    NO_COMPETENCE(-4, "没有权限"),


    RESET_ERROR(-8, "重置失败"),
    SEND_CODE_ERROR(-9, "发送失败！"),
    UPLOAD_ERROR(-10, "上传失败");


    private int statusCode;
    private String statusMessage;

    StatusCode(int statusCode, String statusMessage) {
        this.statusCode = statusCode;
        this.statusMessage = statusMessage;
    }

    public int getCode() {
        return statusCode;
    }

    public String getMessage() {
        return statusMessage;
    }
}
